# -*- encoding=utf8 -*-
__author__ = "Bryan.Chen"

from airtest.core.api import *

auto_setup(__file__)

from poco.drivers.std import StdPoco
poco = StdPoco()

using("../FlowTest.air")
import FlowTest

class Login_BindPhone(FlowTest.BaseTestCase):

    def __init__(self):
        print("%s __init__" % (__file__))
    
    def runTest(self, args):
        dlgTips = poco("LBTipsLayer")
        if not dlgTips.exists():
            return True
        
        txtTips = poco("LBTipsLayer").offspring("info").get_text()
        try:
            if txtTips.index("手机号绑定") >= 0:
                poco("LBTipsLayer").offspring("cancel_btn_2").click([0.5, 0.5])
        except:
            print(u"非绑定手机提示")

        return True
        
                       
_instance = Login_BindPhone()
runTest = _instance.runTest


